package hsh.setintructions;

import hsh.gui.LashVisualInterface;
import hsh.util.Interruption;

public class GET extends Instruction {

	public GET(String parameter, LashVisualInterface gui) {
		super(gui, "ALOCAR", parameter, "");

	}

	@Override
	public Interruption execute() {
		if (gui == null) {
			System.out.println("NULL");
		} else {
			gui.addShellText(
					this.getOpcode() + " " + this.getParameterA() + "\n");
			//gui.getShellConsole().repaint();
		}
		System.out.println(this.getOpcode() + " " + this.getParameterA());
		return Interruption.NONE;
	}

}
